import request from '@/utils/request'

// 提交挂号
export function submit(data) {
  return request({
    url: 'api/registration/submit',
    method: 'post',
    data
  })
}
// 挂号列表
export function getList() {
  return request({
    url: 'api/registration/getList',
    method: 'get'
  })
}
// 挂号详情
export function detail(data) {
  return request({
    url: 'api/registration/detail',
    method: 'post',
    data
  })
}
// 删除挂号
export function del(ids) {
  return request({
    url: 'api/registration/delete',
    method: 'delete',
    data: ids
  })
}

// 查询患者列表
export function getUserList(data) {
  return request({
    url: 'account/getList?name=' + data.name,
    method: 'get'
  })
}

export default { submit, getList, detail, del }
